Allowing to edit activity names with correct access rights#56
Open
opitz wants to merge 1 commit intomoodleou:mainfrom
Open
Allowing to edit activity names with correct access rights#56opitz wants to merge 1 commit intomoodleou:mainfrom
opitz wants to merge 1 commit intomoodleou:mainfrom
Conversation
631c62c to
48a7524
Compare
dvdcastro
added a commit
to lsuonline/moodle-report_editdates
that referenced
this pull request
Mar 11, 2026
…oodleou#56) Add an editable text field for the activity name in the edit dates form. Only users with moodle/course:manageactivities can edit names; others see the field as read-only (frozen). Process name_modtype_cmid form fields in index.php, updating the module table record directly inside the transaction. Move transaction start to before the data-parsing loop so name updates are covered by the same transaction as date changes. Add lang string: activityname = 'Activity name'. Ref: moodleou#56 (commit 48a7524) Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Amended form so a user with the correct access rights will be able not only to edit dates but the names of activities too.